/*
 * (c) 2015 Abil'I.T. http://abilit.eu/
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *  
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */

package org.scada_lts.dao;
 
import java.util.List;

/** 
 * Generic Hierarchy DAO 
 * 
 * @author grzegorz bylica Abil'I.T. development team, sdt@abilit.eu
 * 
 */
public interface GenericHierarchyDAO<T> {
	
	int ERROR = -1;

	List<T> getAll();
	
	List<T> getNode(long parentId);
	
	int add(T node);
	
	int update(T node);
	
	int moveFolder(int id, int newParentId);
	
	int moveView(int id, int newParentId);
	
	int delView(int id);
	
	int delFolder(int id);
	
}
